package com.gxsyh.nantie.statements.management.provider.service;

import com.gxsyh.nantie.statements.management.provider.domain.TbDepartment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbDepartmentService {

    /**
     * 获取部门及它下辖的所有次一级部门
     * @param type,parentId
     */
    List<TbDepartment> selectDepartmentAndSubordinate(Integer type,Long departmentId,Long parentId);

    /**
     * 获取下辖的次一级部门
     * @param type，parentId
     */
    List<TbDepartment> selectDepartmentSubordinate(Integer type,Long parentId);


    /**
     * 获取车间下辖的所有班组
     * @param type，parentId
     */
    List<TbDepartment> selectAllWorkshopSubordinate(Integer type,Long parentId);

    /**
     * 向上获取父级部门
     * @param parentId
     */
    String selectAllBelongToDepartment(Long parentId);




}
